CASE "t"; IF fishy>15 THEN fishy:=fishy-10 -> wide angle
-> "q" quits
ENDSELECT
ELSEIF imsg.class=IDCMP_MOUSEBUTTONS
ENDIF
ReplyMsg(imsg)
ENDIF
UNTIL key="q"
CurrentTime({esec},{emic})
dframes:=Mul(esec-ssec,100)+Div(emic-smic,10000)
fsec:=Div(Mul(frames,10000),dframes)
IF frames THEN WriteF('calculated \d frames in \d.\z\d[2] seconds, giving \d.\z\d[2] f/s\n',frames,Div(dframes,100),Mod(dframes,100),Div(fsec,100),Mod(fsec,100))
EXCEPT DO
IF win THEN CloseWindow(win)
closereqscreen(dbs)
SELECT exception
CASE "SCR"; WriteF('no screen!\n')
CASE "REQ"; WriteF('Error: Could not allocate ASL request\n')
CASE "ASL"; WriteF('Error: Could not open ASL library\n')